﻿using System.Diagnostics;

using Xc.DataAccess.Core;

namespace Xc.DataAccess.Processes
{
    /// <summary>
    /// 窗口服务管理器
    /// </summary>
    public interface IWindowsServiceManager
    {
        Process[] GetProcesses();

        /// <summary>
        /// 启动服务
        /// </summary>
        /// <param name="servcieName"></param>
        /// <returns></returns>
        Result Start(string servcieName);

        /// <summary>
        /// 停止服务
        /// </summary>
        /// <param name="servcieName"></param>
        /// <returns></returns>
        Result Stop(string servcieName);
    }
}
